home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMLSOutput.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  160 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMLSOutput.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMLSOutput_h__
  6. #define __gen_nsIDOMLSOutput_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIOutputStream; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMLSOutput */
  21. #define NS_IDOMLSOUTPUT_IID_STR "757e9971-8890-478d-a53a-07f9f6f6e0d3"
  22.  
  23. #define NS_IDOMLSOUTPUT_IID \
  24.   {0x757e9971, 0x8890, 0x478d, \
  25.     { 0xa5, 0x3a, 0x07, 0xf9, 0xf6, 0xf6, 0xe0, 0xd3 }}
  26.  
  27. class NS_NO_VTABLE nsIDOMLSOutput : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMLSOUTPUT_IID)
  31.  
  32.   /* attribute nsISupports characterStream; */
  33.   NS_IMETHOD GetCharacterStream(nsISupports * *aCharacterStream) = 0;
  34.   NS_IMETHOD SetCharacterStream(nsISupports * aCharacterStream) = 0;
  35.  
  36.   /* attribute nsIOutputStream byteStream; */
  37.   NS_IMETHOD GetByteStream(nsIOutputStream * *aByteStream) = 0;
  38.   NS_IMETHOD SetByteStream(nsIOutputStream * aByteStream) = 0;
  39.  
  40.   /* attribute DOMString systemId; */
  41.   NS_IMETHOD GetSystemId(nsAString & aSystemId) = 0;
  42.   NS_IMETHOD SetSystemId(const nsAString & aSystemId) = 0;
  43.  
  44.   /* attribute DOMString encoding; */
  45.   NS_IMETHOD GetEncoding(nsAString & aEncoding) = 0;
  46.   NS_IMETHOD SetEncoding(const nsAString & aEncoding) = 0;
  47.  
  48. };
  49.  
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIDOMLSOUTPUT \
  52.   NS_IMETHOD GetCharacterStream(nsISupports * *aCharacterStream); \
  53.   NS_IMETHOD SetCharacterStream(nsISupports * aCharacterStream); \
  54.   NS_IMETHOD GetByteStream(nsIOutputStream * *aByteStream); \
  55.   NS_IMETHOD SetByteStream(nsIOutputStream * aByteStream); \
  56.   NS_IMETHOD GetSystemId(nsAString & aSystemId); \
  57.   NS_IMETHOD SetSystemId(const nsAString & aSystemId); \
  58.   NS_IMETHOD GetEncoding(nsAString & aEncoding); \
  59.   NS_IMETHOD SetEncoding(const nsAString & aEncoding); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSIDOMLSOUTPUT(_to) \
  63.   NS_IMETHOD GetCharacterStream(nsISupports * *aCharacterStream) { return _to GetCharacterStream(aCharacterStream); } \
  64.   NS_IMETHOD SetCharacterStream(nsISupports * aCharacterStream) { return _to SetCharacterStream(aCharacterStream); } \
  65.   NS_IMETHOD GetByteStream(nsIOutputStream * *aByteStream) { return _to GetByteStream(aByteStream); } \
  66.   NS_IMETHOD SetByteStream(nsIOutputStream * aByteStream) { return _to SetByteStream(aByteStream); } \
  67.   NS_IMETHOD GetSystemId(nsAString & aSystemId) { return _to GetSystemId(aSystemId); } \
  68.   NS_IMETHOD SetSystemId(const nsAString & aSystemId) { return _to SetSystemId(aSystemId); } \
  69.   NS_IMETHOD GetEncoding(nsAString & aEncoding) { return _to GetEncoding(aEncoding); } \
  70.   NS_IMETHOD SetEncoding(const nsAString & aEncoding) { return _to SetEncoding(aEncoding); } 
  71.  
  72. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  73. #define NS_FORWARD_SAFE_NSIDOMLSOUTPUT(_to) \
  74.   NS_IMETHOD GetCharacterStream(nsISupports * *aCharacterStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharacterStream(aCharacterStream); } \
  75.   NS_IMETHOD SetCharacterStream(nsISupports * aCharacterStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharacterStream(aCharacterStream); } \
  76.   NS_IMETHOD GetByteStream(nsIOutputStream * *aByteStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetByteStream(aByteStream); } \
  77.   NS_IMETHOD SetByteStream(nsIOutputStream * aByteStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetByteStream(aByteStream); } \
  78.   NS_IMETHOD GetSystemId(nsAString & aSystemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemId(aSystemId); } \
  79.   NS_IMETHOD SetSystemId(const nsAString & aSystemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSystemId(aSystemId); } \
  80.   NS_IMETHOD GetEncoding(nsAString & aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
  81.   NS_IMETHOD SetEncoding(const nsAString & aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEncoding(aEncoding); } 
  82.  
  83. #if 0
  84. /* Use the code below as a template for the implementation class for this interface. */
  85.  
  86. /* Header file */
  87. class nsDOMLSOutput : public nsIDOMLSOutput
  88. {
  89. public:
  90.   NS_DECL_ISUPPORTS
  91.   NS_DECL_NSIDOMLSOUTPUT
  92.  
  93.   nsDOMLSOutput();
  94.  
  95. private:
  96.   ~nsDOMLSOutput();
  97.  
  98. protected:
  99.   /* additional members */
  100. };
  101.  
  102. /* Implementation file */
  103. NS_IMPL_ISUPPORTS1(nsDOMLSOutput, nsIDOMLSOutput)
  104.  
  105. nsDOMLSOutput::nsDOMLSOutput()
  106. {
  107.   /* member initializers and constructor code */
  108. }
  109.  
  110. nsDOMLSOutput::~nsDOMLSOutput()
  111. {
  112.   /* destructor code */
  113. }
  114.  
  115. /* attribute nsISupports characterStream; */
  116. NS_IMETHODIMP nsDOMLSOutput::GetCharacterStream(nsISupports * *aCharacterStream)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. NS_IMETHODIMP nsDOMLSOutput::SetCharacterStream(nsISupports * aCharacterStream)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* attribute nsIOutputStream byteStream; */
  126. NS_IMETHODIMP nsDOMLSOutput::GetByteStream(nsIOutputStream * *aByteStream)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. NS_IMETHODIMP nsDOMLSOutput::SetByteStream(nsIOutputStream * aByteStream)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* attribute DOMString systemId; */
  136. NS_IMETHODIMP nsDOMLSOutput::GetSystemId(nsAString & aSystemId)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. NS_IMETHODIMP nsDOMLSOutput::SetSystemId(const nsAString & aSystemId)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* attribute DOMString encoding; */
  146. NS_IMETHODIMP nsDOMLSOutput::GetEncoding(nsAString & aEncoding)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150. NS_IMETHODIMP nsDOMLSOutput::SetEncoding(const nsAString & aEncoding)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* End of implementation class template. */
  156. #endif
  157.  
  158.  
  159. #endif /* __gen_nsIDOMLSOutput_h__ */
  160.